import Vue from 'vue';
import Router from 'vue-router';
import Welcome from '../views/welcome/welcome.vue';
import LoginRoutes from './login/login-routes.js';
import HomeRoutes from './home/home-routes';
import AdminRoutes from './admin/admin-routes';
import MyRoutes from './my/my-routes';
import MessageRoutes from './message/message-routes';
import ActivityDetailRoutes from './activitydetail/activity-detail-routes.js'
import SearchRoutes from './search/search-routes';

Vue.use(Router);
let routes = [{
    path: '/',
    component: Welcome
  },
  ...AdminRoutes,
  ...HomeRoutes,
  ...LoginRoutes,
  ...ActivityDetailRoutes,
  ...MyRoutes,
  ...SearchRoutes,
  ...MessageRoutes,
];


// routes = routes.concat(AdminRoutes)
//   .concat(HomeRoutes)
//   .concat(LoginRoutes);

const router = new Router({
  routes
});

export default router